package dao;


public abstract class ALGJPBean {

	public static final String creationDateColumnName = "creation_date";
	private String creationDate = null;

	public static final String lastUpdateDateColumnName = "last_update_date";
	private String lastUpdateDate = null;

	abstract public Object getPKValue();

	abstract public String getPkColumnName();

	abstract public String getPkPropertieName();
	
	public static String getCreationDateColumnName() {
		return creationDateColumnName;
	}

	public static String getLastUpdateDateColumnName() {
		return lastUpdateDateColumnName;
	}

	public String getCreationDate() {
		if (creationDate == null) {
			return "now()";
		} else {
			return creationDate;
		}
	}

	public void setCreationDate(String creationDate) {
		this.creationDate = creationDate;
	}

	public String getLastUpdateDate() {
		return "now()";
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}
}
